package com.woniuxy.controller.form;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Pattern;

@Data
public class Addchannelform {



    private String channelName;

    @Length(min = 8,max = 13,message = "电话长度不符合规定")
    private String channelPhone;

    private String channelStat;
    @Pattern(regexp = "^[0-9]*$",message = "证件号码格式不对")
    private String channelIdNumber;

    private String channelBank;

    /**
     * 银行账号
     */
    @Pattern(regexp = "^[0-9]*$",message = "账号格式不对")
    private String channelBankAccount;

}
